package io.renren.modules.app.entity.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author LuoShun
 * @emall Lori6166@163.com
 * @date 2022/1/6 18:25
 */
@Data
@ApiModel(value = "用户注册数据传输对象",description = "用于用户的注册")
public class AppRegisterDTO {
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message="用户名不能为空")
    private String username;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message="密码不能为空")
    private String password;
    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", required = true)
    @NotBlank(message="昵称不能为空")
    private String nickname;
    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message="手机号码不能为空")
    private String phone;
    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", required = false)
    private int gender;

}
